package org.linlinjava.litemall.db.models;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.time.LocalDateTime;

@Getter
@Setter
@ToString
@EqualsAndHashCode(callSuper = false)
@TableName("t_ad")
public class Ad extends BaseModel{

    //广告标题
    @TableField("name")
    private String name;

    //广告的商品页面或者活动页面链接地址
    @TableField("link")
    private String link;

    //广告宣传图片
    @TableField("url")
    private String url;

    //广告位置：1则是首页
    @TableField("position")
    private Byte position;

    //活动内容
    @TableField("content")
    private String content;

    //广告开始时间
    @TableField("start_time")
    private LocalDateTime startTime;

    //广告结束时间
    @TableField("end_time")
    private LocalDateTime endTime;

    //是否启用
    @TableField("enabled")
    private Boolean enabled;
}